<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
// you should use `$router`
/* @var think\Route $router */
$router->group('settlement', function () use($router) {
    // bill 路由
    //列表
    $router->post('bill/index', '\\catchAdmin\\settlement\\controller\\Bill@index');
    //新建
    $router->post('bill/create', '\\catchAdmin\\settlement\\controller\\Bill@create');
    //更新
    $router->post('bill/update', '\\catchAdmin\\settlement\\controller\\Bill@update');
    //删除
    $router->post('bill/delete', '\\catchAdmin\\settlement\\controller\\Bill@delete');
    //打印
    $router->post('bill/print', '\\catchAdmin\\settlement\\controller\\Bill@print');
    // expenses 路由
    //列表
    $router->post('expenses/index', '\\catchAdmin\\settlement\\controller\\Expenses@index');
    //新建
    $router->post('expenses/create', '\\catchAdmin\\settlement\\controller\\Expenses@create');
    //更新
    $router->post('expenses/update', '\\catchAdmin\\settlement\\controller\\Expenses@update');
    //删除
    $router->post('expenses/delete', '\\catchAdmin\\settlement\\controller\\Expenses@delete');
    //打印
    $router->post('expenses/print', '\\catchAdmin\\settlement\\controller\\Expenses@print');
    // invoice 路由
    //列表
    $router->post('invoice/index', '\\catchAdmin\\settlement\\controller\\Invoice@index');
    //新建
    $router->post('invoice/create', '\\catchAdmin\\settlement\\controller\\Invoice@create');
    //更新
    $router->post('invoice/update', '\\catchAdmin\\settlement\\controller\\Invoice@update');
    //删除
    $router->post('invoice/delete', '\\catchAdmin\\settlement\\controller\\Invoice@delete');
    //打印
    $router->post('invoice/print', '\\catchAdmin\\settlement\\controller\\Invoice@print');
})->middleware('auth');